package com.magold.logic.pipe;

import org.andengine.util.adt.pool.Pool;

import com.magold.context.IContext;

public class HaloPool extends Pool<Halo> {
	private IContext mContext;
	
	public HaloPool(IContext pContext, int pGrowth, int pMaxAvailableCount) {
		super(0, pGrowth, pMaxAvailableCount);
		
		if (pContext == null) throw new NullPointerException();
		
		mContext = pContext;
	}
	
	@Override
	protected Halo onAllocatePoolItem() {
		return new Halo(mContext.getVertexBufferObjectManager());
	}
	
}
